package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.VoyageBookingTimeRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.VoyageBookingTimeQueryDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC 服务 - E-booking Time")
public interface VoyageBookingTimeApi {

    String PREFIX = DocApiConstants.PREFIX + "/booking";

    /**
     * 查询 E-booking Time
     *
     * @param voyageBookingTimeQueryDto
     * @return
     */
    @Operation(summary = "获取E-booking Time")
    @PostMapping(PREFIX + "/time")
    CommonResult<List<VoyageBookingTimeRespDto>> queryVoyageBookingTime(@RequestBody @Valid VoyageBookingTimeQueryDto voyageBookingTimeQueryDto);
}
